package cn.zorbus.laian.infrastructure.config;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Objects;

/**
 * create in 2023/12/29 16:32
 *
 * @author shishaodong
 * @version 0.0.1
 */
@Component
@Data
public class GlobalFlag {

//    private static final List<Integer> screen = List.of(2, 6, 15);
//
//    private Boolean openGallery = true;
//
//    private Boolean openScreen = true;

    private Boolean openLed = true;

    public boolean enableClose() {
        return openLed;
    }

    public void check(int id) {
        if (Objects.equals(2,id)) {
            openLed = false;
        }
    }
}
